package com.ruoyi.sys.security.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.sys.security.mapper.TbKeepWatchMapper;
import com.ruoyi.sys.security.domain.TbKeepWatch;
import com.ruoyi.sys.security.service.ITbKeepWatchService;

/**
 * 巡更点配置Service业务层处理
 * 
 * @author iuxin
 * @date 2022-05-25
 */
@Service
public class TbKeepWatchServiceImpl implements ITbKeepWatchService 
{
    @Autowired
    private TbKeepWatchMapper tbKeepWatchMapper;

    /**
     * 查询巡更点配置
     * 
     * @param kwId 巡更点配置主键
     * @return 巡更点配置
     */
    @Override
    public TbKeepWatch selectTbKeepWatchByKwId(Long kwId)
    {
        return tbKeepWatchMapper.selectTbKeepWatchByKwId(kwId);
    }

    /**
     * 查询巡更点配置列表
     * 
     * @param tbKeepWatch 巡更点配置
     * @return 巡更点配置
     */
    @Override
    public List<TbKeepWatch> selectTbKeepWatchList(TbKeepWatch tbKeepWatch)
    {
        return tbKeepWatchMapper.selectTbKeepWatchList(tbKeepWatch);
    }

    /**
     * 新增巡更点配置
     * 
     * @param tbKeepWatch 巡更点配置
     * @return 结果
     */
    @Override
    public int insertTbKeepWatch(TbKeepWatch tbKeepWatch)
    {
        return tbKeepWatchMapper.insertTbKeepWatch(tbKeepWatch);
    }

    /**
     * 修改巡更点配置
     * 
     * @param tbKeepWatch 巡更点配置
     * @return 结果
     */
    @Override
    public int updateTbKeepWatch(TbKeepWatch tbKeepWatch)
    {
        return tbKeepWatchMapper.updateTbKeepWatch(tbKeepWatch);
    }

    /**
     * 批量删除巡更点配置
     * 
     * @param kwIds 需要删除的巡更点配置主键
     * @return 结果
     */
    @Override
    public int deleteTbKeepWatchByKwIds(Long[] kwIds)
    {
        return tbKeepWatchMapper.deleteTbKeepWatchByKwIds(kwIds);
    }

    /**
     * 删除巡更点配置信息
     * 
     * @param kwId 巡更点配置主键
     * @return 结果
     */
    @Override
    public int deleteTbKeepWatchByKwId(Long kwId)
    {
        return tbKeepWatchMapper.deleteTbKeepWatchByKwId(kwId);
    }
}
